package com.ccjq.jq167;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class DbConfigReader {

    private Properties prop;

    public DbConfigReader()
    {
        this.read();
    }

    private  void read()
    {
        prop = new Properties();
        InputStream is=DbConfigReader.class.getResourceAsStream("/dbProperties.properties");

        try {
            prop.load(is);
        } catch (IOException e) {
            e.printStackTrace();
        }


    }

    public String getValue(String key)
    {
        return  prop.getProperty(key);
    }

}
